.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  height: 0;
  opacity: 0;
  overflow: hidden;
  .panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    text-align: center;
    font-size: 14px;
    background-color: #FFFFFF;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
    word-wrap: break-word;
    .panel-header {
      padding: 20px 20px 5px;
      font-size: 20px;
      color: #222222;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .panel-content {
      padding: 5px 10px 20px;
      color: #999999;
    }
    .panel-footer {
      border-top: 1px solid #E5E5E5;
      display: flex;
      flex-direction: row;
      height: 50px;
      .panel-footer-left-button {
        font-size: 18px;
        flex: 1;
        position: relative;
        &::after {
          content: "" !important;
          position: absolute;
          top: 0;
          right: 0;
          width: 1px;
          height: 49px;
          background-color: #E5E5E5;
        }
      }
      .panel-footer-right-button {
        font-size: 18px;
        flex: 1;
      }
    }
  }
}
.show {
  height: 100%;
  opacity: 1;
  animation: show 0.4s;
}
.hide {
  height: 0;
  opacity: 0;
  overflow: hidden;
  animation: hide 0.4s;
}

@keyframes show {
  0% {
    height: 0;
    opacity: 0;
  }
  1% {
    height: 100%;
    opacity: 0;
  }
  100% {
    opacity: 1;
    height: 100%;
  }
}

@keyframes hide {
  0% {
    height: 100%;
    opacity: 1;
  }
  99% {
    height: 100%;
    opacity: 0;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}
